import  axios from "../../axios.js"

export default{
  //删除协议管理员或中心
  deleteAPI(data,binding,id)
  {
    return axios({
      url:'/crm/deletetAgreementDepartment',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },
  //新增协议管理员/中心
  insertAPI(data,binding){
    return axios({
      url:'/crm/insertAgreementDepartment',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  //查询协议管理员/中心信息
  selectAgreementByInsert(data,binding){
    return axios({
      url:'/crm/selectAgreementByInsert',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },
  //查询协议管理员管理
  selectAgreementDepartment(data,binding){
    return axios({
      url:'/crm/selectAgreementDepartment',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },
  // 更换协议管理员
  updateAgreementDepartment(data,binding){
    return axios({
      url:'/crm/updateAgreementDepartment',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },
  //更新前的查询
  updateAgreementDepartmentBefore(data,binding){
    return axios({
      url:'/crm/updateAgreementDepartmentBefore',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },
};
